/**统计-收款统计API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

export function getStoreAmount(params) {
  return request({
    url: '/dashboard/storeAmount',
    method: 'get',
    params
  })
}

export function exportExcel(params){
  let arr =[]
  Object.keys(params).forEach(item=>{
    if( params[item]){
      arr.push(`${item}=${params[item]}`)
    }
  })
  return baseURL + '/dashboard/storeAmount/excel?'+arr.join('&')
}
